<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateLogVipSignUsersTable extends Migration
{
    /**
     * Run the migrations.
     * 每日vip用户注册时间表.
     */
    public function up()
    {
        Schema::create('log_vip_sign_users', function (Blueprint $table) {
            $table->increments('id');
            $table->date('date_time')->comment('日期');
            $table->integer('channel_id')->comment('渠道ID');
            $table->bigInteger('user_id')->comment('用户ID');
            $table->timestamps();
            $table->index('date_time');
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down()
    {
        Schema::dropIfExists('log_vip_sign_users');
    }
}
